package com.sx.first.biz;

import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.sx.first.biz.UserBiz;
import com.sx.first.dao.UserDAO;
import com.sx.first.model.User;

@Service("userBiz")
@Scope("prototype")
public class UserBiz {
	private UserDAO userDAO;
	
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}

	public List<User> findAll() {
		return userDAO.findAll();
	}

}
